home *** CD-ROM | disk | FTP | other *** search
- Path: news.asiaonline.net!usenet
- From: Eddy Lau <eddylau@asiaonline.net>
- Newsgroups: comp.lang.c++
- Subject: Borland C++ 4.5 --> pascal calling convention
- Date: Fri, 22 Mar 1996 00:20:48 +0800
- Organization: Asia On-Line Limited, Wanchai, Hong Kong.
- Message-ID: <315181E0.594@asiaonline.net>
- NNTP-Posting-Host: 202.85.14.86
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win95; I)
-
- I'm writing a DLL which is to be used in VB4 Pro 16-bit environment.
- During my test in the VB, an error "Bad Calling convention" is occurred.
- In my C++ code, I define the function as follows:
-
- double far pascal Test();
-
- It seems that the C++ doesn't generate the code in pascal calling
- convention (I'd tried the same DLL in VB4 Pro 32-bit and it work
- properly).
-
- Pls help!!!
-
- Thanks and Regards
-